/**
 * Created with CLion.
 * Description: 
 * User: loong
 * Date: 2020-01-03
 * Time: 10:58
 */
#ifndef PLANTROBOT_SHOWCODE_H
#define PLANTROBOT_SHOWCODE_H

#include <QtWidgets>
#include <QtCore>
#include "../utils/QrCode.h"
#include "../dao/PlantsDao.h"

namespace Ui{
    class ShowCode;
}
class ShowCode : public QDialog{
    Q_OBJECT
private:
    Ui::ShowCode *ui;
    QString string;
public:
    ShowCode(QWidget *parent = 0,QString string = NULL);
    ~ShowCode();
    QString GenerateQrCode(QString);
    void paintQR(QPainter &painter, const QSize sz, const QString &data, QColor fg, QColor bg);
};


#endif //PLANTROBOT_SHOWCODE_H
